﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SYS_PWD_EDIT.aspx.cs" Inherits="SYS_POPEDOM_SYS_PWD_EDIT" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript" src="../JavaScript/Common.js"></script>

    <script type="text/javascript">
        function SavePwd() {
            if (FieldEmptyCheck2(Panel10)) {
                Ext.net.DirectMethods.SavePwd({ success: function (result) { ResultHandle(result); } });
            }
        }

        function ResultHandle(result) {
            if (result == "true") {
                parent.Ext.Msg.alert('系统提示', '密码修改成功!');
                Cancel();
            }
        }
        function Cancel() {
            parent.passEditWin.close();
        }

    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <ext:ResourceManager ID="ResourceManager1" runat="server" AjaxViewStateMode="Enabled" />
            <ext:Viewport runat="server">
                <Content>
                    <ext:FitLayout runat="server">
                        <Items>
                            <ext:Panel ID="Panel10" runat="server" BodyStyle="padding:5px;" ButtonAlign="Center"
                                Frame="true" MonitorValid="true">
                                <Content>
                                    <ext:RowLayout ID="RowLayout1" runat="server">
                                        <Rows>
                                            <ext:LayoutRow>
                                                <ext:Panel runat="server" Border="false" ID="pnl1" Height="90">
                                                    <Content>
                                                        <ext:FormLayout ID="FormLayout1" runat="server" LabelWidth="85">
                                                            <Anchors>
                                                                <ext:Anchor Horizontal="95%">
                                                                    <ext:TextField ID="exttxt_OldPwd" runat="server" LabelAlign="Right" FieldLabel="旧密码" AllowBlank="false"
                                                                        InputType="Password" MaxLength="20" MaxLengthText="密码最多6个字符">
                                                                    </ext:TextField>
                                                                </ext:Anchor>
                                                                <ext:Anchor Horizontal="95%">
                                                                    <ext:TextField ID="exttxt_NewPwd" runat="server" LabelAlign="Right" FieldLabel="新密码" AllowBlank="false"
                                                                        InputType="Password" MaxLength="20" MaxLengthText="密码最多6个字符">
                                                                    </ext:TextField>
                                                                </ext:Anchor>
                                                                <ext:Anchor Horizontal="95%">
                                                                    <ext:TextField ID="exttxt_NewPwd2" runat="server" LabelAlign="Right" FieldLabel="确认密码" AllowBlank="false"
                                                                        InputType="Password" MaxLength="20" MaxLengthText="密码最多6个字符">
                                                                    </ext:TextField>
                                                                </ext:Anchor>
                                                            </Anchors>
                                                        </ext:FormLayout>
                                                    </Content>
                                                </ext:Panel>
                                            </ext:LayoutRow>
                                        </Rows>
                                    </ext:RowLayout>
                                </Content>
                                <Buttons>
                                    <ext:Button ID="Button1" runat="server" Icon="Accept" Text="确认">
                                        <Listeners>
                                            <Click Handler="SavePwd()" />
                                        </Listeners>
                                    </ext:Button>
                                    <ext:Button ID="Button2" runat="server" Icon="Cancel" Text="取消">
                                        <Listeners>
                                            <Click Fn="Cancel" />
                                        </Listeners>
                                    </ext:Button>
                                </Buttons>
                            </ext:Panel>
                        </Items>
                    </ext:FitLayout>
                </Content>
            </ext:Viewport>
        </div>
    </form>
</body>
</html>
